package com.heyue.ems.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.heyue.common.core.annotation.Excel;
import com.heyue.common.core.web.domain.BaseEntity;

/**
 * 同行单详情：配送的明细单（业务）对象 order_detail
 * 
 * @author WCHU
 * @date 2021-07-26
 */
public class OrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long tmsOrderId;

    /** 阳采编码 */
    @Excel(name = "阳采编码")
    private String yangcaiCode;

    /** 品名 */
    @Excel(name = "品名")
    private String productName;

    /** 规格 */
    @Excel(name = "规格")
    private String specifications;

    /** 生产厂商 */
    @Excel(name = "生产厂商")
    private String manufacturer;

    /** 数量 */
    @Excel(name = "数量")
    private String number;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 批号 */
    @Excel(name = "批号")
    private String batchNumber;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date manufactureDate;

    /** 有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validityDate;

    /** 件数 */
    @Excel(name = "件数")
    private Long packagesNumber;

    /** 注册证号 */
    @Excel(name = "注册证号")
    private String registCertificateNo;

    /** 配送状态 */
    @Excel(name = "配送状态")
    private String productType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTmsOrderId(Long tmsOrderId) 
    {
        this.tmsOrderId = tmsOrderId;
    }

    public Long getTmsOrderId() 
    {
        return tmsOrderId;
    }
    public void setYangcaiCode(String yangcaiCode) 
    {
        this.yangcaiCode = yangcaiCode;
    }

    public String getYangcaiCode() 
    {
        return yangcaiCode;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setSpecifications(String specifications) 
    {
        this.specifications = specifications;
    }

    public String getSpecifications() 
    {
        return specifications;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }
    public void setManufactureDate(Date manufactureDate) 
    {
        this.manufactureDate = manufactureDate;
    }

    public Date getManufactureDate() 
    {
        return manufactureDate;
    }
    public void setValidityDate(Date validityDate) 
    {
        this.validityDate = validityDate;
    }

    public Date getValidityDate() 
    {
        return validityDate;
    }
    public void setPackagesNumber(Long packagesNumber) 
    {
        this.packagesNumber = packagesNumber;
    }

    public Long getPackagesNumber() 
    {
        return packagesNumber;
    }
    public void setRegistCertificateNo(String registCertificateNo) 
    {
        this.registCertificateNo = registCertificateNo;
    }

    public String getRegistCertificateNo() 
    {
        return registCertificateNo;
    }
    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tmsOrderId", getTmsOrderId())
            .append("yangcaiCode", getYangcaiCode())
            .append("productName", getProductName())
            .append("specifications", getSpecifications())
            .append("manufacturer", getManufacturer())
            .append("number", getNumber())
            .append("unit", getUnit())
            .append("unitPrice", getUnitPrice())
            .append("batchNumber", getBatchNumber())
            .append("manufactureDate", getManufactureDate())
            .append("validityDate", getValidityDate())
            .append("packagesNumber", getPackagesNumber())
            .append("registCertificateNo", getRegistCertificateNo())
            .append("productType", getProductType())
            .toString();
    }
}
